package com.example.demo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 *@Description 统一返参
 *@Author Levi
 *@Date 2019/4/23-14:22
*/
@Data
@ApiModel(value = "统一返回参数", description = "统一返回参数")
public class ApiResult<T> {
    @ApiModelProperty(value = "状态码", name = "code")
    private int code = 200;

    @ApiModelProperty(value = "信息", name = "msg")
    private String msg = "";

    @ApiModelProperty(value = "数据", name = "data")
    private T data = (T) "{}";

    @ApiModelProperty(value = "当前系统时间戳", name = "timestamp")
    private long timestamp = System.currentTimeMillis();

}
